DIN#.INV
Description
Sets or gets the polarity of a digital input.
|
Value |
Description |
|---|---|
| 0 – Active high | The digital input state is 1 when voltage is applied to the IO pin |
| 1 – Active low | The digital input state is 1 when voltage is removed from the IO pin |
Examples
Code
With 24V on DIN1:
--> DIN1.INV 0 //Active High
--> DIN1.STATE 1 --> DIN1.INV 1 //Active low --> DIN1.STATE 0
With 0V on DIN1:
--> DIN1.INV 0 //Active High
--> DIN1.STATE 0 --> DIN1.INV 1 //Active low --> DIN1.STATE 1
Context
For more information see Digital Inputs and Outputs.
Versions
| Action | Version | Notes |
|---|---|---|
| Implemented | 02-00-00-000 |
General Information
| Type | Read/Write |
| Units | N/A |
| Range | 0 to 1 |
| Default Value | 0 (Active high) |
| Data Type | Integer |
| See Also | |
|
Stored in Non Volatile Memory |
Yes |
Variants Supported
All variants are supported.





